﻿@model ingesup_ERP.Models.PROFESSEUR

<tr @if (Model != null) {
    @:data-pkey="@Model.LOGINPERS"
}>
    <td>
        @Html.EditorFor(model => model.COMPETENCES_PROF)
        @Html.ValidationMessageFor(model => model.COMPETENCES_PROF)
    </td>
    <td>
        @Html.EditorFor(model => model.NOMPERS)
        @Html.ValidationMessageFor(model => model.NOMPERS)
    </td>
    <td>
        @Html.EditorFor(model => model.PRENOMPERS)
        @Html.ValidationMessageFor(model => model.PRENOMPERS)
    </td>
    <td>
        @Html.EditorFor(model => model.MAILPERS)
        @Html.ValidationMessageFor(model => model.MAILPERS)
    </td>
    <td>
        @Html.EditorFor(model => model.DATENAISSPERS)
        @Html.ValidationMessageFor(model => model.DATENAISSPERS)
    </td>
    <td>
        @Html.EditorFor(model => model.MDPPERS)
        @Html.ValidationMessageFor(model => model.MDPPERS)
    </td>
    <td>
        @Html.EditorFor(model => model.NUMTELPERS)
        @Html.ValidationMessageFor(model => model.NUMTELPERS)
    </td>
    <td>
        @Html.EditorFor(model => model.ADRESSEPERS)
        @Html.ValidationMessageFor(model => model.ADRESSEPERS)
    </td>
    <td>
        @Html.EditorFor(model => model.VILLEPERS)
        @Html.ValidationMessageFor(model => model.VILLEPERS)
    </td>
    <td>
        @Html.EditorFor(model => model.CPPERS)
        @Html.ValidationMessageFor(model => model.CPPERS)
    </td>
    <td>
@if (ViewContext.RouteData.Values["Action"].ToString() == "Edit") {
        <button class="editRow">Save</button><button class="cancelEditRow">Cancel</button>
} else {
        <button class="createRow">Create</button><button class="cancelCreateRow">Cancel</button>
}
    </td>
</tr>
